#ifndef __MYSCREEN_H__
#define __MYSCREEN_H__

#include <iostream>

using namespace std;

static enum {MAX_SCREEN_X=80, MAX_SCREEN_Y=25, MIN_SCREEN_X=0, MIN_SCREEN_Y=0};

class MyScreen
{
	char m_screen[MAX_SCREEN_X][MAX_SCREEN_Y];
	bool legal(int x , int y) const ;

public:
	MyScreen();
	bool set(int x, int y, char ch); 
	void print() const;
	bool isSet(int x, int y) const {return (m_screen[x][y]!= ' ');}
	void Diff(const  MyScreen * scr) const;
	char getChar(int x, int y) const { return (m_screen[x][y]);}
	void clearScreen () ;
};

#endif

